//
//  NOViewController.m
//  HelloWorldEdi2
//
//  Created by student on 13-12-4.
//  Copyright (c) 2013年 student. All rights reserved.
//

#import "NOViewController.h"

@interface NOViewController ()

@end

@implementation NOViewController

- (void)viewDidLoad//加载时
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    //UIKit
    UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
    label1.text = @"Hellow Xcode";
    label1.font =  [UIFont systemFontOfSize:48];
    label1.center = CGPointMake(320/2, 480/2);//rect居中 cgpointmake() 函数模式
    label1.textAlignment = NSTextAlignmentCenter;//文字居中
    [self.view addSubview:label1];
}

- (void)didReceiveMemoryWarning//内存警告时
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
